home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / hity wydania / Ubuntu 9.10 PL / karmelkowy-koliberek-desktop-9.10-i386-PL.iso / casper / filesystem.squashfs / var / lib / dpkg / info / cups-bsd.prerm < prev    next >
Text File  |  2009-10-31  |  1KB  |  46 lines

  1. #! /bin/sh
  2. # prerm script for cups-bsd
  3. #
  4. # see: dh_installdeb(1)
  5.  
  6. set -e
  7.  
  8. # summary of how this script can be called:
  9. #        * <prerm> `remove'
  10. #        * <old-prerm> `upgrade' <new-version>
  11. #        * <new-prerm> `failed-upgrade' <old-version>
  12. #        * <conflictor's-prerm> `remove' `in-favour' <package> <new-version>
  13. #        * <deconfigured's-prerm> `deconfigure' `in-favour'
  14. #          <package-being-installed> <version> `removing'
  15. #          <conflicting-package> <version>
  16. # for details, see /usr/doc/packaging-manual/
  17.  
  18. if [ -L /etc/printcap ]; then
  19.     rm -f /etc/printcap
  20. fi
  21.  
  22. case "$1" in
  23.     remove|upgrade|deconfigure)
  24.     # Remove documentation links
  25.     rm -rf /usr/share/doc/cups-bsd
  26.  
  27.     # Disable inetd entry
  28.     update-inetd --pattern cups-lpd --disable printer
  29.         ;;
  30.     failed-upgrade)
  31.         ;;
  32.     *)
  33.         echo "prerm called with unknown argument \`$1'" >&2
  34.         exit 0
  35.     ;;
  36. esac
  37.  
  38. # dh_installdeb will replace this with shell code automatically
  39. # generated by other debhelper scripts.
  40.  
  41.  
  42.  
  43. exit 0
  44.  
  45.  
  46.